#include"function_w.h"


//空格分隔字符串，第一个参数为原字符串 后两个参数为分割后的字符串
void splitChar(char* from, char* operate, char* operand){
    int fromLen = strlen(from);
    int i = 0, j = 0;
    
    while(from[i]!=' ' && i<fromLen) {
        operate[j++] = from[i++];
    }
    while(from[i]==' ' && i<fromLen) {
        i++;
    }
    j=0;
    while(from[i]!=' ' && i<fromLen) {
        operand[j++] = from[i++];
    }
}
